package prototipo;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;

public class GUI extends JFrame {

	public GUI(){

		JFrame frame = new JFrame("Prototipo mejorado");
	//	Dimension d= frame.getSize();
		
        StatusBar barra = new StatusBar();
        Game game = new Game(barra);
         
        frame.getContentPane().setLayout(new BorderLayout());
        frame.getContentPane().add(barra,BorderLayout.PAGE_END);
        frame.getContentPane().add(game,BorderLayout.CENTER);
        
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setResizable(false);
        frame.setVisible(true);
		
	
	
    
	}
	
	  public static void main(String[] args) {
	        new GUI();
	    }
}